<%--
  Created by IntelliJ IDEA.
  User: LJS
  Date: 2018/11/14
  Time: 15:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName()
            + ":" + request.getServerPort() + path + "/";
%>
<!-- Mobile specific metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Force IE9 to render in normal mode -->
<!--[if IE]><meta http-equiv="x-ua-compatible" content="IE=9" /><![endif]-->

<!-- Css files -->
<!-- Icons -->
<link href="<%=basePath%>assets/css/icons.css" rel="stylesheet" />
<!-- jQueryUI -->
<link href="<%=basePath%>assets/css/sprflat-theme/jquery.ui.all.css" rel="stylesheet" />
<!-- Bootstrap stylesheets (included template modifications) -->
<link href="<%=basePath%>assets/css/bootstrap.css" rel="stylesheet" />
<!-- Plugins stylesheets (all plugin custom css) -->
<link href="<%=basePath%>assets/css/plugins.css" rel="stylesheet" />
<!-- Main stylesheets (template main css file) -->
<link href="<%=basePath%>assets/css/main.css" rel="stylesheet" />
<!-- Custom stylesheets ( Put your own changes here ) -->
<link href="<%=basePath%>assets/css/custom.css" rel="stylesheet" />

<link rel="icon" href="<%=basePath%>assets/img/ico/favicon.ico" type="image/png">

<!-- Javascripts -->
<!-- Load pace first -->
<script src="<%=basePath%>assets/plugins/core/pace/pace.min.js"></script>
<!-- Important javascript libs(put in all pages) -->
<script src="<%=basePath%>assets/js/jquery-1.8.3.min.js"></script>
<script>
    window.jQuery || document.write('<script src="<%=basePath%>assets/js/libs/jquery-2.1.1.min.js">\x3C/script>')
</script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script>
    window.jQuery || document.write('<script src="<%=basePath%>assets/js/libs/jquery-ui-1.10.4.min.js">\x3C/script>')
</script>
<!--[if lt IE 9]>
<script type="text/javascript" src="<%=basePath%>assets/js/libs/excanvas.min.js"></script>
<script type="text/javascript" src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script type="text/javascript" src="<%=basePath%>assets/js/libs/respond.min.js"></script>
<![endif]-->
<!-- Bootstrap plugins -->
<script src="<%=basePath%>assets/js/bootstrap/bootstrap.js"></script>
<!-- Core plugins ( not remove ever) -->
<!-- Handle responsive view functions -->
<script src="<%=basePath%>assets/js/jRespond.min.js"></script>
<!-- Custom scroll for sidebars,tables and etc. -->
<script src="<%=basePath%>assets/plugins/core/slimscroll/jquery.slimscroll.min.js"></script>
<script src="<%=basePath%>assets/plugins/core/slimscroll/jquery.slimscroll.horizontal.min.js"></script>
<!-- Resize text area in most pages -->
<script src="<%=basePath%>assets/plugins/forms/autosize/jquery.autosize.js"></script>
<!-- Proivde quick search for many widgets -->
<script src="<%=basePath%>assets/plugins/core/quicksearch/jquery.quicksearch.js"></script>
<!-- Bootbox confirm dialog for reset postion on panels -->
<script src="<%=basePath%>assets/plugins/ui/bootbox/bootbox.js"></script>
<!-- Other plugins ( load only nessesary plugins for every page) -->
<script src="<%=basePath%>assets/plugins/core/moment/moment.min.js"></script>
<script src="<%=basePath%>assets/plugins/forms/icheck/jquery.icheck.js"></script>
<script src="<%=basePath%>assets/plugins/forms/tags/jquery.tagsinput.min.js"></script>
<script src="<%=basePath%>assets/plugins/forms/tinymce/tinymce.min.js"></script>

<script src="<%=basePath%>assets/plugins/forms/maxlength/bootstrap-maxlength.js"></script>
<%--<script src="<%=basePath%>assets/plugins/forms/bootstrap-filestyle/bootstrap-filestyle.js"></script>--%>
<script src="<%=basePath%>assets/plugins/forms/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="<%=basePath%>assets/plugins/forms/select2/select2.js"></script>
<script src="<%=basePath%>assets/plugins/forms/checkall/jquery.checkAll.js"></script>

<script src="<%=basePath%>assets/plugins/misc/highlight/highlight.pack.js"></script>
<script src="<%=basePath%>assets/plugins/misc/countTo/jquery.countTo.js"></script>
<script src="<%=basePath%>assets/js/jquery.sprFlat.js"></script>
<script src="<%=basePath%>assets/js/app.js"></script>
<script src="<%=basePath%>assets/js/pages/forms.js"></script>

<script type="text/javascript">
    function getDate() {
        var today = new Date();
        var date = today.getFullYear() + "年" + twoDigits(today.getMonth() + 1) + "月" + twoDigits(today.getDate()) + "日 ";
        var week = " 星期" + "日一二三四五六 ".charAt(today.getDay());
        var time = twoDigits(" "+today.getHours()) + ":" + twoDigits(today.getMinutes()) + ":" + twoDigits(today.getSeconds());
        $("#sidebar-date").html(date + week + time);
    }
    function twoDigits(val) {
        if (val < 10) return "0" + val; return val;
    }
    $(function () {
        setInterval(getDate, 1000);
    });
    function editable() {
        $("#invoice-form").find('input,textarea,select').each(function() {
            $(this).prop("disabled",false);
        });
        $("#uploadButton").prop("disabled",false);
        $("#addRowBtn").prop("disabled",false);
        $("#delRowBtn").prop("disabled",false);
    }
</script>